<form class="form-horizontal" role="form" ng-controller="mail_conf">
	<div class="form-group">
		<label for="a" class="col-sm-2 control-label">SMTP服务器</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" id="a" placeholder="SMTP服务器"
				ng-model="mail.smtpHost">
		</div>
	</div>
	<div class="form-group">
		<label for="a" class="col-sm-2 control-label">SMTP端口</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" id="a" placeholder="SMTP端口"
				ng-model="mail.smtpPort">
		</div>
	</div>
	<div class="form-group">
		<label for="b" class="col-sm-2 control-label">发送邮箱账号</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" id="b" placeholder="发送邮箱账号"
				ng-model="mail.smtpAccout">
		</div>
	</div>
	<div class="form-group">
		<label for="c" class="col-sm-2 control-label">发送邮箱密码</label>
		<div class="col-sm-10">
			<input type="password" class="form-control" id="c"
				placeholder="发送邮箱密码" ng-model="mail.smtpPassword">
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<div class="checkbox">
				<label><input type="checkbox" ng-model="mail.useSSL" ng-checked="mail.useSSL=='true'">使用SSL连接</label>
			</div>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="button" class="btn btn-default" ng_click="testConfig()">测试账号</button>

			<button type="button" class="btn btn-default" ng_click="saveConfig()">保存</button>
		</div>
	</div>


	<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-body">正在测试邮箱设置是否正确</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
</form>